/* 自定义样式 */
.prose {
    line-height: 1.75;
}

.prose h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.75em 0;
}

.prose h3 {
    font-size: 1.17em;
    font-weight: bold;
    margin: 0.83em 0;
}

.prose p {
    margin: 1em 0;
}

.prose ul {
    list-style-type: disc;
    margin-left: 2em;
}

.prose ol {
    list-style-type: decimal;
    margin-left: 2em;
}

.prose li {
    margin: 0.5em 0;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 1em 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.prose blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #6b7280;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* 代码块样式增强 */
pre[class*="language-"] {
    position: relative;
    margin: 1em 0;
}

pre[class*="language-"]::before {
    content: attr(class);
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 0.25em 0.5em;
    font-size: 0.75em;
    border-radius: 0 0 0 0.25em;
}

/* 标签样式 */
.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prose {
        font-size: 0.875rem;
    }
    
    .prose h1 {
        font-size: 1.5em;
    }
    
    .prose h2 {
        font-size: 1.25em;
    }
    
    .prose h3 {
        font-size: 1.125em;
    }
}
